/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mycompany.utils;

import com.mycompany.entity.PomodoroRol;

/**
 *
 * @author majulvez
 */
public abstract class PomodoroRoles {

    /*
    public enum Roles {
        user, leader, admin
    };
    
    private static PomodoroRol user;
    private static PomodoroRol leader;
    private static PomodoroRol admin;
     */
    
    public final static PomodoroRol USER = new PomodoroRol();
    public final static PomodoroRol LEADER = new PomodoroRol();
    public final static PomodoroRol ADMIN = new PomodoroRol();
    
    static {
        USER.setId(-1L);
        USER.setName("user");
        
        LEADER.setId(-2L);
        LEADER.setName("leader");
        
        ADMIN.setId(-3L);
        ADMIN.setName("admin");
    }

    /*
    public static PomodoroRol getInstance(Roles rol) {

        switch (rol) {
            case user:
                if (user == null) {
                    user = new PomodoroRol();
                    user.setId(1L);
                    user.setName("user");
                }
                return user;
            case leader:
                if (leader == null) {
                    leader = new PomodoroRol();
                    leader.setId(2L);
                    leader.setName("leader");
                }
                return leader;
            case admin:
                if (admin == null) {
                    admin = new PomodoroRol();
                    admin.setId(3L);
                    admin.setName("admin");
                }
                return admin;
        }

        return null;
    }
     */
}
